//
//  RootViewController.h
//  TestTableView
//
//  Created by wenshuishi on 12-11-14.
//  Copyright (c) 2012年 wenshuishi. All rights reserved.
//

#import <UIKit/UIKit.h>


#define TalkingTipTag 7389

@interface RootViewController : UIViewController{
    CGPoint prevTouchPoint;//上一个触摸点
    UIView *bgTapView;//背景view
    //UITapGestureRecognizer *tapRecognizer;//用于监听点击事件
    UIViewController *leftViewController,*rightViewController;
    
    UIPanGestureRecognizer *curSlideRecognizer;
    BOOL isChallenge;//是否单挑塞
}
@property (assign, nonatomic) UIPanGestureRecognizer *curSlideRecognizer;
@property (strong, nonatomic) UIViewController *currViewController;


-(id)initWithLeftViewController:(UIViewController*)leftVC rightViewController:(UIViewController*)rightVC;
-(id)initWithRightViewController:(UIViewController*)rightVC challenge:(BOOL)challenge;
-(void)addShadowTo:(UIViewController*)viewController;

-(void)showViewController:(UIViewController*)viewController;//替换掉当前的viewController
-(void)pushViewController:(UIViewController*)viewController;//在当前的viewController的基础上push过去
-(void)backToMidView;
-(void)showLeftView;//从外部调用，要求显示左边菜单
-(void)showRightView;//从外部调用，要求显示左边菜单
-(void)onlyShowRightView ;
-(void)showAllRightView;//从外部调用，要求显示全部广场界面

-(BOOL)checkIfSameViewController:(UIViewController*)vc1 viewController2:(UIViewController*)vc2;

//-(void)freshSizeAndPos;

-(UIViewController*)getleftVC;



- (void)onSlide:(UIPanGestureRecognizer*)gesture;
@end
